package com.vecspace.data.model.reflect;

import java.util.ArrayList;

/**
 * 
 * @version: 1.0
 * @author: wanghua
 */
public class ClassSimpleInfo {
	private String classSimpleName;
	private String className;
	private String handlerName;
	private ArrayList<MethodSimpleInfo> methods = new ArrayList<MethodSimpleInfo>();
	
	public ClassSimpleInfo(){
		
	}
	
	public MethodSimpleInfo getMethodSimpleInfo(String methodName){
		for(MethodSimpleInfo method : methods){
			if(methodName.equals(method.getMethodName())){
				return method;
			}
		}
		return null;
	}
	
	public ClassSimpleInfo(String classSimpleName, String className){
		this.classSimpleName = classSimpleName;
		this.className = className;
	}
	
	public void addMethodSimpleInfo(MethodSimpleInfo method){
		methods.add(method);
	}
	
	public String getClassSimpleName() {
		return classSimpleName;
	}
	public void setClassSimpleName(String classSimpleName) {
		this.classSimpleName = classSimpleName;
	}
	
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	
	public ArrayList<MethodSimpleInfo> getMethods() {
		return methods;
	}
	public void setMethods(ArrayList<MethodSimpleInfo> methods) {
		this.methods = methods;
	}

	public String getHandlerName() {
		return handlerName;
	}

	public void setHandlerName(String handlerName) {
		this.handlerName = handlerName;
	}
	
}
